import * as types from '../actions/actionTypes';

const initialState = {
    'loading' : false,
    'res' : {},
};

let registerPasswordReducer = (state = initialState, action) => {

     switch(action.type)
     {
        case types.FRECH_SET_PASSWORD :
            return Object.assign({}, state, {
                'loading' : action.loading,
            })
        case types.RECEIVE_SET_PASSWORD :
            return Object.assign({}, state, {
                'res' : action.res,
                'loading' : action.loading,
            })
        // case types.CHECK_LOGIN :
        //     return Object.assign({}, state, {
        //         'loading' : action.loading,
        //     })
        // case types.RECEIVE_LOGIN :
        //     return Object.assign({}, state, {
        //         'login' : action.login,
        //         'loading' : action.loading,
        //         'dlq' : '33333',
        //     })
         default : 
             return state;
     }
}

export default registerPasswordReducer;